<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
	  xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:replace="common/custom_index::head">
</head>
<body th:replace="common/custom_index::body">
</body>
<script type="text/javascript" th:inline="javascript">
	var object = [[${obj}]]
	var querySelectlist = [[${querySelectlist}]];
	layui.use(['form'],function() {
		var form = layui.form;
		$("#querySelect").html();
		for(let obj in querySelectlist){
			var html = '';
			html = html+"<script type='text/html' id='"+obj+"'>"
					+"<select lay-search>"
					+"<option value=''>请搜索或选择</option>";
			for(var i in querySelectlist[obj]){
				html = html+"<option value='"+querySelectlist[obj][i].label+"'>"+querySelectlist[obj][i].value+"</option>";
			}
			html = html+"<\/select><\/script>";
			$("#querySelect").append(html);
		}
		var customHtml = '';
		customHtml = customHtml+'<div class="layui-form-item">' +
				'<div class="layui-inline">' +
				'<label class="layui-form-label"><span style="color:red;">*</span>发生月：</label>' +
				'<div class="layui-input-inline">' +
				'<input type="text" id="month" placeholder="请选择" class="layui-input" autocomplete="off">' +
				'</div>' +
				'</div>' +
				'</div>'
		$("#custom").html(customHtml);
		form.render();
	})
</script>
<script type="text/javascript" src="static/js/cost_equipment_lease/index.js"></script>
<script type="text/html" id="tableToolbar" th:inline="javascript">
	<div class="layui-inline" shiro:hasPermission="${'btn:'+obj.url+'_save'}">
		<button class="layui-btn layui-btn-sm" lay-event="save"><i class="layui-icon">&#xe681;</i>数据导入</button>
	</div>
	<div class="layui-inline" shiro:hasPermission="${'btn:'+obj.url+'_download'}">
		<button class="layui-btn layui-btn-sm" lay-event="custom_download"><i class="layui-icon">&#xe601;</i>导出</button>
	</div>
	<button type="button" lay-event="find" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon">&#xe615;</i>查询</button>
</script>
<script type="text/html" id="LAY-excel-export-ans">
	{{# layui.each(d.data, function(file_index, item){ }}
	<blockquote class="layui-elem-quote">{{d.files[file_index].name}}</blockquote>
	<div class="layui-tab" lay-filter="sheet">
		<ul class="layui-tab-title">
			{{# layui.each(item, function(sheet_name, content) { }}
			<li lay-id="{{sheet_name}}">{{sheet_name}}</li>
			{{# }); }}
		</ul>
		<div class="layui-tab-content">
			{{# layui.each(item, function(sheet_name, content) { }}
			<div class="layui-tab-item">
				<table class="layui-table">
					{{# layui.each(content, function(row_index, value) { }}
					{{# var col_index = 0 }}
					<tr>
						{{# layui.each(value, function(col_key, val) { }}
						<td id="table-export-{{file_index}}-{{sheet_name}}-{{row_index}}-{{col_index++}}">{{val}}</td>
						{{# });}}
					</tr>
					{{# });}}
				</table>
			</div>
			{{# }); }}
		</div>
	</div>
	{{# }) }}
</script>
</html>